﻿#对CMake版本进行限制
cmake_minimum_required(VERSION 3.10)

#设置解决方案名称
project(GAMES101_HOMEWORK)
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_TOOLCHAIN_FILE "D:/Program Files/vcpkg-master/scripts/buildsystems/vcpkg.cmake")

set(CMAKE_PREFIX_PATH "D:/Program Files/vcpkg-master/installed/x64-windows/")

find_package(OpenCV REQUIRED)

add_definitions(-DMODELS_PATH="${CMAKE_CURRENT_LIST_DIR}/models")

add_subdirectory(hw0 Transformation)
add_subdirectory(hw1 Rasterizer0)
add_subdirectory(hw2 Rasterizer1)
add_subdirectory(hw3 Rasterizer2)
add_subdirectory(hw4 BezierCurve)
add_subdirectory(hw5 RayTracing1)
add_subdirectory(hw6 RayTracing2)